package com.example.uniappspringbootstartweb.mapper;

import com.example.uniappspringbootstartweb.entity.Publish;
import com.example.uniappspringbootstartweb.entity.Userlike;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
/**
 * Created by lilijava
 * on 2024/12/30
 * <p>
 * on  uni-app-springboot-start-web
 * @author DELL
 */
public interface PublishRepository extends JpaRepository<Publish, Long> {

    List<Publish> findAllByUserid(Long userid);

    List<Publish> findByContentid(Long userid);
}
